# -*- coding: utf-8 -*- 
import time
import sys
import selenium
from selenium import webdriver
from selenium.webdriver.common.keys import Keys

if selenium.webdriver.chrome.webdriver.WebDriver:
    print 1
else:
    print 2

#selenium.webdriver.chrome.webdriver.WebDriver


#if brower:
#    js = "window.open('http://itsm-rpt.sf-express.com/balantflow/')"
#    brower.execute_script(js)
#else:
#    brower = webdriver.Chrome(executable_path = r"D:/user/Downloads/chromedriver")
#    time.sleep(2)
#    brower.get('http://itsm-rpt.sf-express.com/balantflow/')
	
	
if not selenium.webdriver.chrome.webdriver.WebDriver:
    brower = webdriver.Chrome(executable_path = r"D:/user/Downloads/chromedriver")
    time.sleep(2)
    brower.get('http://itsm-rpt.sf-express.com/balantflow/')
   # js = "window.open('http://itsm-rpt.sf-express.com/balantflow/')"
   # brower.execute_script(js)
else:
   # brower = webdriver.Chrome(executable_path = r"D:/user/Downloads/chromedriver")
   # time.sleep(2)
   # brower.get('http://itsm-rpt.sf-express.com/balantflow/')    
    js = "window.open('http://itsm-rpt.sf-express.com/balantflow/')"
    brower.execute_script(js)
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	